let String = "121.docx"
if (String.includes(['docx'] || String.includes(['doc']))){
    console.log('1111')
}